package ch5.oop.ch4;

//玩具企鹅
public class Penguin {
	String brand;
	private int money;

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		if (money < 1) {
			System.out.println("价格设置错误");
			money = 1;
		}
		this.money = money;
	}

}
